package com.example.blog.dao;

import com.example.blog.pojo.Blog;
import com.example.blog.pojo.query.SearchBlog;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * name: 东北宋小宝
 * date: 2020/8/17
 */
@Mapper
public interface BlogMapper {
    List<Blog> findAll(Map map);
    List<Blog> findAll(SearchBlog blog);
    Long getAllViews();
    void insertBlog(Blog blog);
    void updateBlog(Blog blog);
    Blog findBlog(Map map);
    void delBlog(Integer id);
}
